// 引入axios | 路径配置
import { AJAX_PATH } from "@/services/config.js";

// 导入 封装的 有权限请求
import { HTTP_LIMITED } from "@/utils/axios.js";

class ShouFaLeiBieHttp extends HTTP_LIMITED {
  
  addReceiveSendType(data) {
    // 收发类别保存
    return this._post(AJAX_PATH.addReceiveSendType, data);
  }
  getReceiveSendTypeByName(data) {
    // 收发类别获取
    return this._get(AJAX_PATH.getReceiveSendTypeByName, data);
  }
  deleteReceiveSendType(data) {//收发类别-删除
    return this._get(AJAX_PATH.deleteReceiveSendType + data);
  }
  updateReceiveSendType(data) {//收发类别-修改
    return this._post(AJAX_PATH.updateReceiveSendType, data);
  }
  duplicateCheck(data) {//重复校验
    return this._get(AJAX_PATH.duplicateCheck + data)
  }
}

export { ShouFaLeiBieHttp };
